the height of a figure using the pythagorean theorem